package org.example.cloud.service.implementation;

import org.example.cloud.bean.User;
import org.example.cloud.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByUsername(String username) {
        // 调用 UserMapper 的方法从数据库获取用户信息
        return userMapper.findByUsername(username);
    }
}
